package com.priox.sigar.domain.model;

import com.mm.support.domain.IdentifiedAuditableDomainObject;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Johann
 * Date: 28/08/13
 * Time: 02:21 PM
 * To change this template use File | Settings | File Templates.
 */

public class ClienteSociedadPK implements Serializable {

    private String clienteId;
    private String sociedadId;

    public String getClienteId() {
        return clienteId;
    }

    public void setClienteId(String clienteId) {
        this.clienteId = clienteId;
    }

    public String getSociedadId() {
        return sociedadId;
    }

    public void setSociedadId(String sociedadId) {
        this.sociedadId = sociedadId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ClienteSociedadPK that = (ClienteSociedadPK) o;

        if (clienteId != null ? !clienteId.equals(that.clienteId) : that.clienteId != null) return false;
        if (sociedadId != null ? !sociedadId.equals(that.sociedadId) : that.sociedadId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = clienteId != null ? clienteId.hashCode() : 0;
        result = 31 * result + (sociedadId != null ? sociedadId.hashCode() : 0);
        return result;
    }
}
